<template>
	<div class="header">
		<div class="header-left">
			<span class="iconfont icon-back">&#xe613;</span>
		</div>
		<div class="header-input">
			<span class="iconfont">&#xe600;</span>
			输入景点
		</div>
		<router-link to='/city'>
			<div class="header-right">
				{{this.$store.state.city}}
			</div>
		</router-link>
	</div>
</template>

<script>
	export default {
		name:"HomeHeader",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="stylus" scoped>
	@import '~styles/varibles.styl'
	// 1rem =html font-size =50px
	.header
		display:flex
		height:$headerHeight
		line-height:$headerHeight
		background:$bgcolor
		color:#fff
		.header-left
			width:.64rem
			float:left
			.icon-back
				font-size:.4rem
				text-align:center
		.header-input
			flex:1
			height:.64rem
			margin-top:.12rem
			margin-left:.2rem
			padding-left:.2rem
			border-radius:.1rem
			background:#fff
			color:#ccc
			line-height:.64rem
		.header-right
			min-width:1.04rem
			padding:0 .1rem
			float:right
			text-align:center
			color:#fff

		
</style>
